package cn.edu.henu.team.table;

import java.util.List;
import cn.edu.henu.team.application.MyApplication;
import cn.edu.henu.team.database.examinationsDao;

public class examinationsUtils {

    private static examinationsDao mExaminationDao;
    //静态代码块块
    static {
        mExaminationDao = MyApplication.getInstances().getDaoSession().getExaminationsDao();
    }

    //增加
    public static void insert(examinations q) {
        mExaminationDao.insertOrReplace(q);
    }

    //删除全部
    public static void deleteAll(){
        mExaminationDao.deleteAll();
    }
    //查询全部
    public static List<examinations> loadAll() {
        return mExaminationDao.loadAll();
    }
}
